<template>
	<view class="contaner" @click="details">
		<view class="header">
			<view class="left-img">
				<image src="" mode="widthFix" class="image"></image>
			</view>
			<view class="rig-text">
				<view>
					<text class="name">{{doctorList.name}}</text>
					<text class="type"> {{doctorList.type}}</text>
				</view>
				<text class="content">{{doctorList.content}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:['doctorList'],
		setup(props,context) {
			
			const details=()=>{
				
			}
			return {
				details
			}
		}
	}
</script>

<style lang="scss">
	.contaner {
		box-sizing: border-box;
		padding: 0 24rpx;
		border-radius: 20rpx;
		border: 1px solid #F0F8FF;
		margin-bottom: 24rpx;

		.header {
			height: 160rpx;
			display: flex;
			align-items: center;
			
			display: flex;
		}

		.left-img {
			width: 100rpx;
			height: 100rpx;
			border-radius: 12rpx;
			background-color: #eee;
			margin-right: 20rpx;

			.image {
				width: 100%;
				height: 100%;
			}
		}

		.rig-text {
			display: flex;
			flex-flow: column;
			justify-content: space-between;

			.name {
				font-size: 32rpx;
				margin-right: 10rpx;
			}

			.type {
				font-size: 28rpx;
				color: #666;
			}

			.content {
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
				color: #aaa;
				font-size: 24rpx;
				margin-top: 12rpx;
			}
		}
	}
</style>
